-- GENERATED SPELL FOR [Stormscale Siren] --


function spell0_2180(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_2180', 3500, 1)
end

function spell1_2180(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2180', 2500, 1)
end

function Sorts_2180(pUnit, Event)
local choix_sorts_2180 = math.random(0, 1)
if choix_sorts_2180 == 0 then
pUnit:RegisterEvent('spell0_2180', 1, 1)
end
if choix_sorts_2180 == 1 then
pUnit:RegisterEvent('spell1_2180', 1, 1)
end
end

function mob2180_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2180', math.random(1500, 3000), 1)
end

function mob2180_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2180_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2180_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2180, 1, 'mob2180_Action')
RegisterUnitEvent(2180, 2, 'mob2180_Leave')
RegisterUnitEvent(2180, 3, 'mob2180_Kill')
RegisterUnitEvent(2180, 4, 'mob2180_Die')
